//
//  MailWarnMePredicateEditorDelegate.m
//  MailWarnMe
//
//  Created by Chaim Peck on 3/6/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "MailWarnMePredicateEditorDelegate.h"


#define DEFAULT_PREDICATE @"(recipient contains 'tnrglobal.com' " \
@"OR recipient contains 'cmg.net' )" \
@"AND sender = 'chaimpeck@gmail.com'"

@interface MyPredicateEditor : NSPredicateEditor 

@end

@implementation MailWarnMePredicateEditorDelegate

- (id) init {
	self = [super init];
	/*
	
	NSLog(@"MailWarnMePredicateEditorDelegate:init");
	
	NSData *myPredicateData = [[NSUserDefaults standardUserDefaults] objectForKey:@"predicate"];
		
	NSLog(@"my predicate data: %@",myPredicateData);
	
	NSPredicate* myPredicate = [NSKeyedUnarchiver unarchiveObjectWithData:myPredicateData];
	
	NSLog(@"My predicate: %@",myPredicate);
	
	if (self != nil) {
		predicate = [[NSPredicate predicateWithFormat:DEFAULT_PREDICATE] retain];
	}
	 */
		
	return self;
}


@end
